﻿using Microsoft.AspNetCore.Mvc;
using IO = System.IO;

namespace WebHelper.Controllers
{
    //[Route("[controller]/[action]")]
    //public class FileController : Controller
    //{
    //    private readonly AppSetting appSetting = App.AppSettings;

    //    [HttpGet]
    //    public string Copy()
    //    {
    //        string fromDir = appSetting.WebSrcDir;
    //        var files = Directory.GetFiles(fromDir, "*.html", SearchOption.AllDirectories);
    //        try
    //        {
    //            foreach (var file in files)
    //            {
    //                string copyFile = file.Replace("src", "dist");
    //                IO.File.Copy(file, copyFile, true);

    //            }
    //            return "OK";
    //        }
    //        catch (Exception e)
    //        {
    //            return e.Message;
    //        }
    //    }
    //}
}
